from rest_framework import viewsets
from .models import DailyStatistics, StatisticCache, StatisticQueries
from .serializers import DailyStatisticsSerializer, StatisticCacheSerializer, StatisticQueriesSerializer

# Day Statistics ViewSet
class DailyStatisticsViewSet(viewsets.ModelViewSet):
    queryset = DailyStatistics.objects.all()
    serializer_class = DailyStatisticsSerializer

# Statistic Cache ViewSet
class StatisticCacheViewSet(viewsets.ModelViewSet):
    queryset = StatisticCache.objects.all()
    serializer_class = StatisticCacheSerializer

# Statistic Queries ViewSet
class StatisticQueriesViewSet(viewsets.ModelViewSet):
    queryset = StatisticQueries.objects.all()
    serializer_class = StatisticQueriesSerializer
